import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
// import Login from '@/pages/admin/login'
// import Home from '@/pages/home'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: resolve =>require(['@/pages/home'],resolve)
    },
      {
          path: '/admin',
          name: 'login',
          component: resolve =>require(['@/pages/admin/login'],resolve)
      }
  ]
})
